package com.ys.entity.business;

import java.util.Date;
import javax.persistence.Table;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TP_AplusFile", catalog="Id")
public class TpAplusFile extends BaseEntity<TpAplusFile> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BoutiqueId", nameJava="boutiqueId", typeDataBase="bigint")
	private Long boutiqueId;
	@YsField(nameDataBase="Code", nameJava="code", typeDataBase="varchar")
	private String code;
	@YsField(nameDataBase="BoutiqueSiteDetailId", nameJava="boutiqueSiteDetailId", typeDataBase="bigint")
	private Long boutiqueSiteDetailId;
	@YsField(nameDataBase="VgsBm", nameJava="vgsBm", typeDataBase="varchar")
	private String vgsBm;
	@YsField(nameDataBase="FileName", nameJava="fileName", typeDataBase="varchar")
	private String fileName;
	@YsField(nameDataBase="FilePath", nameJava="filePath", typeDataBase="text")
	private String filePath;
	@YsField(nameDataBase="FileType", nameJava="fileType", typeDataBase="varchar")
	private String fileType;
	@YsField(nameDataBase="FileSize", nameJava="fileSize", typeDataBase="varchar")
	private String fileSize;
	@YsField(nameDataBase="FileSizeUnit", nameJava="fileSizeUnit", typeDataBase="varchar")
	private String fileSizeUnit;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpAplusFile setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getBoutiqueId() {
		return boutiqueId;
	}
	public TpAplusFile setBoutiqueId(Long boutiqueId) {
		this.boutiqueId = boutiqueId;
		return this;
	}
	public String getCode() {
		return code;
	}
	public TpAplusFile setCode(String code) {
		this.code = code;
		return this;
	}
	public Long getBoutiqueSiteDetailId() {
		return boutiqueSiteDetailId;
	}
	public TpAplusFile setBoutiqueSiteDetailId(Long boutiqueSiteDetailId) {
		this.boutiqueSiteDetailId = boutiqueSiteDetailId;
		return this;
	}
	public String getVgsBm() {
		return vgsBm;
	}
	public TpAplusFile setVgsBm(String vgsBm) {
		this.vgsBm = vgsBm;
		return this;
	}
	public String getFileName() {
		return fileName;
	}
	public TpAplusFile setFileName(String fileName) {
		this.fileName = fileName;
		return this;
	}
	public String getFilePath() {
		return filePath;
	}
	public TpAplusFile setFilePath(String filePath) {
		this.filePath = filePath;
		return this;
	}
	public String getFileType() {
		return fileType;
	}
	public TpAplusFile setFileType(String fileType) {
		this.fileType = fileType;
		return this;
	}
	public String getFileSize() {
		return fileSize;
	}
	public TpAplusFile setFileSize(String fileSize) {
		this.fileSize = fileSize;
		return this;
	}
	public String getFileSizeUnit() {
		return fileSizeUnit;
	}
	public TpAplusFile setFileSizeUnit(String fileSizeUnit) {
		this.fileSizeUnit = fileSizeUnit;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpAplusFile setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpAplusFile setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpAplusFile setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpAplusFile tpAplusFile(
		Long boutiqueId,
		String code,
		Long boutiqueSiteDetailId,
		String vgsBm,
		String fileName,
		String filePath,
		String fileType,
		String fileSize,
		String fileSizeUnit,
		Integer status
			) {
		TpAplusFile entity = new TpAplusFile();
		entity.setBoutiqueId(boutiqueId);
		entity.setCode(code);
		entity.setBoutiqueSiteDetailId(boutiqueSiteDetailId);
		entity.setVgsBm(vgsBm);
		entity.setFileName(fileName);
		entity.setFilePath(filePath);
		entity.setFileType(fileType);
		entity.setFileSize(fileSize);
		entity.setFileSizeUnit(fileSizeUnit);
		entity.setStatus(status);
		return entity;
	}
}